﻿using System.Data;
using Migrator.Framework;

namespace ScrumBox.Database.Migrations
{
    [Migration(3)]
    public class CreateSprintsTable : Migration
    {
        public override void Up()
        {
            Database.AddTable("Sprints",
                              new Column("Id", DbType.Guid),
                              new Column("ProjectId", DbType.Guid),
                              new Column("Title", DbType.String),
                              new Column("StartDate", DbType.DateTime),
                              new Column("EndDate", DbType.DateTime));
        }

        public override void Down()
        {
            Database.RemoveTable("Sprints");
        }
    }
}